package com.qiall.boot.fileservice.data.eitity;

import com.qiall.boot.fileservice.data.eitity.enums.UploadStatusEnum;
import com.qiall.common.entity.BaseInfo;
import lombok.Data;

@Data
public class FileInfo extends BaseInfo {

    private Integer id;
    private String fileName;
    private String contextType;
    private Byte fromType;

    /**
     * 外部文件系统文件id
     */
    private String fromId;
    /**
     * 单位 byte
     */
    private Long fileSize;
    /**
     * 上传者 id
     */
    private Integer uploaderId;
    /**
     * 所属文件夹id
     */
    private Integer directId;

    /**
     * 上传状态
     * @see  UploadStatusEnum
     */
    private Byte uploadStatus;

}
